package com.grantheath.erebus.controller.URLCommands
{
	import com.grantheath.erebus.model.enum.notifications.ErebusURLNotifications;

	import org.puremvc.as3.interfaces.INotification;
	import org.puremvc.as3.interfaces.ICommand;
	import org.puremvc.as3.patterns.command.SimpleCommand;

	/**
	 * @author grantheath
	 */
	public class ErebusHandleInvalidURLCommand extends SimpleCommand implements ICommand
	{
		override public function execute(notification : INotification) : void
		{
			var validURL : String = notification.getBody() as String;
			
			sendNotification(ErebusURLNotifications.SET_URL, validURL);
		}
	}
}
